package com.ftf.tp.blog.infrastructure.converter;

import com.ftf.tp.blog.domain.configuration.dos.TagDO;
import com.ftf.tp.blog.infrastructure.mapper.pos.TagEsPO;
import com.ftf.tp.blog.infrastructure.mapper.pos.TagPO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author tanghao
 * @date 2022/7/28
 */
@Mapper
public interface TagConverter {

    TagConverter INSTANCE = Mappers.getMapper(TagConverter.class);

    TagPO doToPO(TagDO tagDO);

    TagDO doToPO(TagPO tagPO);

    List<TagDO> poToDOList(List<TagPO> tagPOList);

    List<TagPO> doToPOList(List<TagDO> tagDOList);

    List<TagDO> esToDOList(List<TagEsPO> tagEsPOList);
}
